/**
 * New node file
 */
exports.newCache = function(){
	var obj = {};
	obj.cache = {};
	obj.queue = [];
	obj.put = function(k, v) {
		obj.cache[k] = v;
	}
	obj.get = function(k) {
		var cache = obj.cache;
		if(cache[k] == undefined){
			return null;
		}
		return cache[k];
	}
	obj.invalid = function(k) {
		var cache = obj.cache;
		delete cache[k];
	}
	return obj;
}
